package com.techstar.mqttprocesser.service.mqtt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.techstar.mqttprocesser.service.mqtt.model.MqttJsonDataModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author lilei
 * @create 2025-03-31-2025/3/31
 */
@Mapper
public interface MqttJsonDataModelMapper extends BaseMapper<MqttJsonDataModel> {

    int batchInsert(List<MqttJsonDataModel> mqttJsonDataModels);

    void insertOrUpdate(List<MqttJsonDataModel> mqttJsonDataModels);

    void cleanData(MqttJsonDataModel dataModel);
}
